define({ "api": [
  {
    "type": "get",
    "url": "api/address",
    "title": "获取地址列表",
    "description": "<p>获取地址列表</p>",
    "group": "address",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "userid",
            "description": "<p>用户id</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n      code: '200',\n      message: '获取地址列表',\n      data\n    })",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/api/address"
      }
    ],
    "version": "1.0.0",
    "filename": "api/address.js",
    "groupTitle": "address",
    "name": "GetApiAddress"
  },
  {
    "type": "get",
    "url": "api/address/edit",
    "title": "addid获取地址列表",
    "description": "<p>获取地址列表</p>",
    "group": "address",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "addressid",
            "description": "<p>用户地址id</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n      code: '200',\n      message: '获取地址列表',\n      data\n    })",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/api/address/edit"
      }
    ],
    "version": "1.0.0",
    "filename": "api/address.js",
    "groupTitle": "address",
    "name": "GetApiAddressEdit"
  },
  {
    "type": "post",
    "url": "api/address/add",
    "title": "添加地址",
    "description": "<p>添加地址</p>",
    "group": "address",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "userid",
            "description": "<p>用户id</p>"
          },
          {
            "group": "Parameter",
            "type": "number",
            "optional": false,
            "field": "isDefault",
            "description": "<p>是不是默认地址</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "name",
            "description": "<p>收件人姓名</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "tel",
            "description": "<p>收件人手机</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "province",
            "description": "<p>收件人省份</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "city",
            "description": "<p>收件人城市</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "county",
            "description": "<p>收件人区县</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "addressDetail",
            "description": "<p>收件人详细地址</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n      code: '200',\n      message: '插入地址成功'\n    });",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/api/address/add"
      }
    ],
    "version": "1.0.0",
    "filename": "api/address.js",
    "groupTitle": "address",
    "name": "PostApiAddressAdd"
  },
  {
    "type": "post",
    "url": "api/address/delete",
    "title": "删除地址",
    "description": "<p>删除地址</p>",
    "group": "address",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "addressid",
            "description": "<p>地址id</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "token",
            "description": "<p>token</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n      code: '200',\n      message: '删除地址成功'\n    });",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/api/address/delete"
      }
    ],
    "version": "1.0.0",
    "filename": "api/address.js",
    "groupTitle": "address",
    "name": "PostApiAddressDelete"
  },
  {
    "type": "post",
    "url": "api/address/update",
    "title": "修改地址",
    "description": "<p>修改地址</p>",
    "group": "address",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "userid",
            "description": "<p>用户id</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "token",
            "description": "<p>token</p>"
          },
          {
            "group": "Parameter",
            "type": "number",
            "optional": false,
            "field": "isDefault",
            "description": "<p>是不是默认地址</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "name",
            "description": "<p>收件人姓名</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "tel",
            "description": "<p>收件人手机</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "province",
            "description": "<p>收件人省份</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "city",
            "description": "<p>收件人城市</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "county",
            "description": "<p>收件人区县</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "addressDetail",
            "description": "<p>收件人详细地址</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n      code: '200',\n      message: '插入地址成功'\n    });",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/api/address/update"
      }
    ],
    "version": "1.0.0",
    "filename": "api/address.js",
    "groupTitle": "address",
    "name": "PostApiAddressUpdate"
  },
  {
    "type": "get",
    "url": "api/banner",
    "title": "获取轮播图数据",
    "description": "<p>获取轮播图数据</p>",
    "group": "banner",
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n code :'200',\n message: '获取轮播图数据',\n data: []\n}",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/api/banner"
      }
    ],
    "version": "1.0.0",
    "filename": "api/banner.js",
    "groupTitle": "banner",
    "name": "GetApiBanner"
  },
  {
    "type": "get",
    "url": "api/cart",
    "title": "获取购物车数据",
    "description": "<p>获取购物车数据</p>",
    "group": "cart",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "userid",
            "description": "<p>用户ID</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n  code: '20202',\n  message: '你想看谁的数据呢'\n})\n{\n code: '200',\n message: '获取购物车数据',\n len: 1, // 根据这个字段判断有没有数据\n data: data\n}",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/api/cart"
      }
    ],
    "version": "1.0.0",
    "filename": "api/cart.js",
    "groupTitle": "cart",
    "name": "GetApiCart"
  },
  {
    "type": "get",
    "url": "api/cart/allchecked",
    "title": "全选框",
    "description": "<p>全选框</p>",
    "group": "cart",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "userid",
            "description": "<p>购物车id</p>"
          },
          {
            "group": "Parameter",
            "type": "number",
            "optional": false,
            "field": "flag",
            "description": "<p>选择框状态</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n code: '200',\n message: '更新全选框成功'\n}",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/api/cart/allchecked"
      }
    ],
    "version": "1.0.0",
    "filename": "api/cart.js",
    "groupTitle": "cart",
    "name": "GetApiCartAllchecked"
  },
  {
    "type": "get",
    "url": "api/cart/checked",
    "title": "选择框",
    "description": "<p>选择框</p>",
    "group": "cart",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "cartid",
            "description": "<p>购物车id</p>"
          },
          {
            "group": "Parameter",
            "type": "number",
            "optional": false,
            "field": "flag",
            "description": "<p>选择框状态</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n code: '200',\n message: '更新复选框成功'\n}",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/api/cart/checked"
      }
    ],
    "version": "1.0.0",
    "filename": "api/cart.js",
    "groupTitle": "cart",
    "name": "GetApiCartChecked"
  },
  {
    "type": "get",
    "url": "api/cart/delete",
    "title": "删除数据",
    "description": "<p>删除数据</p>",
    "group": "cart",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "cartid",
            "description": "<p>购物车id</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n code: '200',\n message: '数据删除成功'\n}",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/api/cart/delete"
      }
    ],
    "version": "1.0.0",
    "filename": "api/cart.js",
    "groupTitle": "cart",
    "name": "GetApiCartDelete"
  },
  {
    "type": "get",
    "url": "api/cart/update",
    "title": "加减数量",
    "description": "<p>加减数量</p>",
    "group": "cart",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "cartid",
            "description": "<p>购物车id</p>"
          },
          {
            "group": "Parameter",
            "type": "number",
            "optional": false,
            "field": "num",
            "description": "<p>产品数量</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n code: '200',\n message: '更新购物车数量成功'\n}",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/api/cart/update"
      }
    ],
    "version": "1.0.0",
    "filename": "api/cart.js",
    "groupTitle": "cart",
    "name": "GetApiCartUpdate"
  },
  {
    "type": "post",
    "url": "api/cart/add",
    "title": "加入购物车",
    "description": "<p>加入购物车</p>",
    "group": "cart",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "userid",
            "description": "<p>用户ID</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "proid",
            "description": "<p>产品id</p>"
          },
          {
            "group": "Parameter",
            "type": "number",
            "optional": false,
            "field": "num",
            "description": "<p>产品数量 （默认为1）</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n  code: '10101',\n  message: '购物车数据填写不完整'\n})\n{\n code: '200',\n message: '加入购物车成功'\n}",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/api/cart/add"
      }
    ],
    "version": "1.0.0",
    "filename": "api/cart.js",
    "groupTitle": "cart",
    "name": "PostApiCartAdd"
  },
  {
    "type": "get",
    "url": "api/category/getCategory",
    "title": "获取分类",
    "description": "<p>获取分类</p>",
    "group": "category",
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n      code: '200',\n      message: '获取分类',\n      data\n    });",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/api/category/getCategory"
      }
    ],
    "version": "1.0.0",
    "filename": "api/category.js",
    "groupTitle": "category",
    "name": "GetApiCategoryGetcategory"
  },
  {
    "type": "get",
    "url": "api/category/getCategoryBrand",
    "title": "获取分类下的品牌",
    "description": "<p>获取分类下的品牌</p>",
    "group": "category",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "type",
            "description": "<p>分类</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n      code: '200',\n      message: '获取分了下的品牌数据',\n      data\n    });",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/api/category/getCategoryBrand"
      }
    ],
    "version": "1.0.0",
    "filename": "api/category.js",
    "groupTitle": "category",
    "name": "GetApiCategoryGetcategorybrand"
  },
  {
    "type": "get",
    "url": "api/category/getCategoryBrandList",
    "title": "获取当前分类下当前品牌的产品数据",
    "description": "<p>获取当前分类下当前品牌的产品数据</p>",
    "group": "category",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "type",
            "description": "<p>分类</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "brand",
            "description": "<p>品牌</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n      code: '200',\n      message: '获取当前分类下当前品牌的产品数据',\n      data\n    });",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/api/category/getCategoryBrandList"
      }
    ],
    "version": "1.0.0",
    "filename": "api/category.js",
    "groupTitle": "category",
    "name": "GetApiCategoryGetcategorybrandlist"
  },
  {
    "type": "get",
    "url": "api/category/getTypeProList",
    "title": "获取当前分类下的产品数据",
    "description": "<p>获取当前分类下的产品数据</p>",
    "group": "category",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "type",
            "description": "<p>分类</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n      code: '200',\n      message: '获取当前分类下的产品数据',\n      data\n    });",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/api/category/getTypeProList"
      }
    ],
    "version": "1.0.0",
    "filename": "api/category.js",
    "groupTitle": "category",
    "name": "GetApiCategoryGettypeprolist"
  },
  {
    "type": "get",
    "url": "api/order",
    "title": "确认订单的订单消息",
    "description": "<p>确认订单的订单消息</p>",
    "group": "order",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "orderid",
            "description": "<p>订单id</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n      code: '200',\n      message: '确认订单的订单消息',\n      data\n    })",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/api/order"
      }
    ],
    "version": "1.0.0",
    "filename": "api/order.js",
    "groupTitle": "order",
    "name": "GetApiOrder"
  },
  {
    "type": "get",
    "url": "api/order/deleteOrder",
    "title": "删除订单",
    "description": "<p>删除订单</p>",
    "group": "order",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "orderid",
            "description": "<p>订单id</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    code: '200',\n    message: '删除订单成功'\n  })",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/api/order/deleteOrder"
      }
    ],
    "version": "1.0.0",
    "filename": "api/order.js",
    "groupTitle": "order",
    "name": "GetApiOrderDeleteorder"
  },
  {
    "type": "get",
    "url": "api/order/updateAddress",
    "title": "修改订单收货人信息",
    "description": "<p>修改订单收货人信息</p>",
    "group": "order",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "orderid",
            "description": "<p>订单id</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "addressid",
            "description": "<p>地址id</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    code: '200',\n    message: '修改地址成功'\n  })",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/api/order/updateAddress"
      }
    ],
    "version": "1.0.0",
    "filename": "api/order.js",
    "groupTitle": "order",
    "name": "GetApiOrderUpdateaddress"
  },
  {
    "type": "post",
    "url": "api/order/add",
    "title": "生成订单",
    "description": "<p>生成订单</p>",
    "group": "order",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "userid",
            "description": "<p>用户id</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "orderlist",
            "description": "<p>[{}, {}]</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n code: '200',\n message: '生成订单，去确认订单',\norderid\n}",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/api/order/add"
      }
    ],
    "version": "1.0.0",
    "filename": "api/order.js",
    "groupTitle": "order",
    "name": "PostApiOrderAdd"
  },
  {
    "type": "get",
    "url": "api/pro",
    "title": "获取列表数据",
    "description": "<p>获取列表的数据，可以传递不同的参数以获取数据</p>",
    "group": "pro",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "number",
            "optional": false,
            "field": "limit",
            "description": "<p>每页显示个数 (默认值10)</p>"
          },
          {
            "group": "Parameter",
            "type": "number",
            "optional": false,
            "field": "count",
            "description": "<p>页码(默认值0)</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n code :'200',\n message: '获取产品列表数据',\n data: []\n}",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/api/pro"
      }
    ],
    "version": "1.0.0",
    "filename": "api/pro.js",
    "groupTitle": "pro",
    "name": "GetApiPro"
  },
  {
    "type": "get",
    "url": "api/pro/detail",
    "title": "获取产品的详情数据",
    "description": "<p>获取产品的详情数据</p>",
    "group": "pro",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "proid",
            "description": "<p>产品id</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n  code: '200',\n  message: '获取详情的数据',\n  data: data[0]\n}\n{\n  code: '10404', // 10404 状态码自己编辑，随便设定\n  message: '没有查询到该产品相关数据'\n}",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/api/pro/detail"
      }
    ],
    "version": "1.0.0",
    "filename": "api/pro.js",
    "groupTitle": "pro",
    "name": "GetApiProDetail"
  },
  {
    "type": "get",
    "url": "api/search/fenci",
    "title": "分词-搜索测试",
    "description": "<p>分词-搜索测试</p>",
    "group": "search",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "value",
            "description": "<p>分词-搜索测试</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    code: '200',\n    message: '分词-搜索测试',\n    data\n  });",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/api/search/fenci"
      }
    ],
    "version": "1.0.0",
    "filename": "api/search.js",
    "groupTitle": "search",
    "name": "GetApiSearchFenci"
  },
  {
    "type": "get",
    "url": "api/search/search",
    "title": "搜索列表",
    "description": "<p>搜索列表</p>",
    "group": "search",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "value",
            "description": "<p>搜索关键词</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n      code: '200',\n      message: '搜索列表',\n      data\n    })",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/api/search/search"
      }
    ],
    "version": "1.0.0",
    "filename": "api/search.js",
    "groupTitle": "search",
    "name": "GetApiSearchSearch"
  },
  {
    "type": "get",
    "url": "api/users/getCollection",
    "title": "获取收藏的产品",
    "description": "<p>获取收藏的产品</p>",
    "group": "users",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "collectionData",
            "description": "<p>收藏的产品id的数组字符串</p>"
          },
          {
            "group": "Parameter",
            "type": "token",
            "optional": false,
            "field": "token",
            "description": "<p>登陆验证</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n        code: '200',\n        message: '获取收藏的产品',\n        data: result\n      })\nres.send({\n    code: '10119',\n    message: 'token验证失败'\n  })",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/api/users/getCollection"
      }
    ],
    "version": "1.0.0",
    "filename": "api/users.js",
    "groupTitle": "users",
    "name": "GetApiUsersGetcollection"
  },
  {
    "type": "get",
    "url": "api/users/getuserinfo",
    "title": "获取用户信息",
    "description": "<p>获取用户信息</p>",
    "group": "users",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "userid",
            "description": "<p>用户id</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "token",
            "description": "<p>验证登陆令牌</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n      code: '200',\n      message: '获取用户信息',\n      data\n    })\nres.send({\n    code: '10119',\n    message: 'token验证失败'\n  })",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/api/users/getuserinfo"
      }
    ],
    "version": "1.0.0",
    "filename": "api/users.js",
    "groupTitle": "users",
    "name": "GetApiUsersGetuserinfo"
  },
  {
    "type": "post",
    "url": "api/users/login",
    "title": "登陆功能",
    "description": "<p>登陆功能</p>",
    "group": "users",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "tel",
            "description": "<p>手机号</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "password",
            "description": "<p>密码</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n code: '10400',\n message: '请完善表单信息'\n}\n{\n code: '10888',\n message: '登陆成功'\n}\n{\n code: '10808',\n message: '该用户未注册'\n}",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/api/users/login"
      }
    ],
    "version": "1.0.0",
    "filename": "api/users.js",
    "groupTitle": "users",
    "name": "PostApiUsersLogin"
  },
  {
    "type": "post",
    "url": "api/users/register",
    "title": "注册功能",
    "description": "<p>注册功能</p>",
    "group": "users",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "tel",
            "description": "<p>手机号</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "password",
            "description": "<p>密码</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n code: '10400',\n message: '请完善表单信息'\n}\n{\n code: '10666',\n message: '注册成功'\n}\n{\n code: '10606',\n message: '该用户已注册'\n}",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/api/users/register"
      }
    ],
    "version": "1.0.0",
    "filename": "api/users.js",
    "groupTitle": "users",
    "name": "PostApiUsersRegister"
  },
  {
    "type": "post",
    "url": "api/users/updateAvatar",
    "title": "更新头像",
    "description": "<p>更新头像</p>",
    "group": "users",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "userid",
            "description": "<p>用户id</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "token",
            "description": "<p>验证登陆令牌</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "avatar",
            "description": "<p>昵称</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n      code: '200',\n      message: '更新头像',\n      data\n    })\nres.send({\n    code: '10119',\n    message: 'token验证失败'\n  })",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/api/users/updateAvatar"
      }
    ],
    "version": "1.0.0",
    "filename": "api/users.js",
    "groupTitle": "users",
    "name": "PostApiUsersUpdateavatar"
  },
  {
    "type": "post",
    "url": "api/users/updateinfo",
    "title": "更改用户信息",
    "description": "<p>更改用户信息</p>",
    "group": "users",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "userid",
            "description": "<p>用户id</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "token",
            "description": "<p>验证登陆令牌</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "nickname",
            "description": "<p>昵称</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "email",
            "description": "<p>邮箱</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "sex",
            "description": "<p>性别</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n      code: '200',\n      message: '修改用户信息成功',\n      data\n    })\nres.send({\n    code: '10119',\n    message: 'token验证失败'\n  })",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/api/users/updateinfo"
      }
    ],
    "version": "1.0.0",
    "filename": "api/users.js",
    "groupTitle": "users",
    "name": "PostApiUsersUpdateinfo"
  }
] });
